import React from 'react'
import { withRouter } from "react-router-dom"
import topStyle from './css/meun.module.css'

@withRouter
class Top extends React.Component {

    constructor(props) {
        super(props)
        this.state = {

        }
    }
    into_guangchang() {
        this.props.history.push('/guangchang')
    }
    into_dongtai(){
        this.props.history.push('/dongtai2')
    }
    back(){
        this.props.history.go(-1)
    }

    render() {
        return (
            <div>
                <ul className={topStyle.top}>
                    <li><span className={topStyle.personal} onClick={this.back.bind(this)}></span></li>
                    {/* <li className={topStyle.tabtext} onClick={this.into_guangchang.bind(this)}>广场</li> */}
                    <li className={topStyle.tabtext} onClick={this.into_dongtai.bind(this)}>动态</li>
                    <li><span className={topStyle.meun}></span></li>
                </ul>
            </div>
        )
    }

}

export default Top